﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace BlockEngine.Engine.Internal
{
    [Serializable]
    [StructLayout(LayoutKind.Sequential)]
    public struct Vector3F : IEquatable<Vector3F>
    {
        public float x, y, z;

        public static readonly int ByteSize = Marshal.SizeOf(new Vector3F());

        public Vector3F(float x, float y, float z)
        {
            this.x = x;
            this.y = y;
            this.z = z;
        }

        public bool Equals(Vector3F other)
        {
            return x == other.x && y == other.y && z == other.z;
        }
    }
}
